using System;
using System.Collections.Generic;
namespace DalatCooking.Core
{
    public abstract class IRightRepository
    {
        public abstract bool Insert(Right entity);
        public abstract bool Update(Right entity);
        public abstract bool Delete(Right entity);
        public abstract bool Delete(int id);
        public abstract List<Right> FindAll();
        public abstract Right FindById(int id);
        public abstract Right Single(int id);
        public abstract Right FindByName(string name);
        public abstract List<Right> PagingSql(int pageSize, int pageNum, out int totalRowCount);
        public abstract List<Right> PagingLinq(int pageSize, int pageNum, out int totalRowCount);
        public abstract bool SetActive(int id);
        public abstract bool SetSortIndex(int id, int isup);
        public abstract bool RemoveSelectedItem(int id);
        public abstract bool RemoveAll();
        public abstract bool RestoreSelectedItem(int id);
        public abstract bool RestoreAll();
    }
}